import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
import React, { Component } from 'react';
import { isTenantRoleLevel } from 'utils/utils';
import ConfigDetail from "./ConfigDetail";

var Config = /*#__PURE__*/function (_Component) {
  _inherits(Config, _Component);

  var _super = _createSuper(Config);

  function Config(props) {
    var _this;

    _classCallCheck(this, Config);

    _this = _super.call(this, props);
    _this.state = {
      isSite: !isTenantRoleLevel()
    };
    return _this;
  }

  _createClass(Config, [{
    key: "render",
    value: function render() {
      var isSite = this.state.isSite;
      var match = this.props.match;
      return /*#__PURE__*/React.createElement(ConfigDetail, {
        isSite: isSite,
        match: match
      });
    }
  }]);

  return Config;
}(Component);

export { Config as default };